﻿namespace LJ.EventBus.FastDog.Data;

/// <summary>
/// 事件处理类描述信息
/// </summary>
public class EventHandlerDescriptor(string topicName, string groupName, Type eventType, Type eventHandlerType)
{

    /// <summary>
    /// 事件名称(NameRuler规则计算后)
    /// </summary>
    public string TopicName { get; set; } = topicName;


    /// <summary>
    /// 事件处理名称(NameRuler规则计算后)
    /// </summary>
    public string GroupName { get; set; } = groupName;



    /// <summary>
    /// 事件类型
    /// </summary>
    public Type EventType { get; set; } = eventType;

    /// <summary>
    /// 事件处理类名称,将同时注册为service和impl
    /// </summary>
    public Type EventHandlerType { get; set; } = eventHandlerType;
}